<?php
$config['authentication'] = array(
  #
  # User table and model configuration
  #
  
  # Model name of table containing users info
  # Used in load->model('???')
  'model' => 'User',
  
  # Table field containing the username
  'username' => 'email',
  
  # Table field containig the password (MD5 encrypted)
  'password' => 'password',
  
  # Password salt to be used
  'salt' => 'fsdfasdf8df57&%/5463yti&djfhsdffd$&',
  
  # Session name to be used
  'session' => 'synt4xAuthSgRamos',
  
  #
  # User Groups Options
  #
  'user_groups' => TRUE,
  
  # Defines name of model that handles user groups
  # Set to FALSE to use a char field in users table
  'user_groups_table' => 'Group',
  
  # Defines the field in the user table that defines user group
  # Only used if user_groups_table is FALSE
  'user_groups_table_field' => '',
  
  # Define fields required in user groups table if user_groups_table != FALSE
  'user_groups_table_id' => 'id_group', # The primary key field (the foreign key used in users table)
  'user_groups_table_fk' => 'group_id', # The foreign key in the users table
  'user_groups_table_type_field' => 'type', # The field that defines the user type
  
  # 
  # Configuration options
  # 
  
  # Automatically encrypt passwords with the salt given,
  # else assume they will be passed already encrypted.
  'autoencrypt' => TRUE,
  
  # URL to show login form
  'login' => 'auth/login',
  
  # Flashdata name to save error information
  'flashdata' => 'auth_flash',
  
  #
  # Messages to set using flashdata
  #
  'message_unauthorized' => 'No est&aacute;s autorizado para ver esa p&aacute;gina.'
);